package com.onlineOrder.bean;

import java.util.Objects;

public class userList {
    private String userId;
    private String userName;//用户昵称
//    private String sale;
    private String password;
    private String name; //用户本名
    private String phone;
    private String sex;
    private String address;
//    private String state;
//    private String register;
    private int flag; //默认1

    public userList() {
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "userList{" +
                "userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", sex='" + sex + '\'' +
                ", address='" + address + '\'' +
                ", flag=" + flag +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        userList userList = (userList) o;
        return flag == userList.flag && Objects.equals(userId, userList.userId) && Objects.equals(userName, userList.userName) && Objects.equals(password, userList.password) && Objects.equals(name, userList.name) && Objects.equals(phone, userList.phone) && Objects.equals(sex, userList.sex) && Objects.equals(address, userList.address);
    }

    @Override
    public int hashCode() {
        return Objects.hash(userId, userName, password, name, phone, sex, address, flag);
    }
}
